# 定义一个登录函数，实现每次登录输出 我登陆了

login_name = 'jack'
login_password= '12345'

def log(func):
    def wrapper(*args,**kwargs):
        print('我登陆了！！！！')
        func(*args,**kwargs)
    return wrapper
@log
def login():
    name = input('please input your name:')
    password = input('please input your password:')
    if  name ==login_name and password == login_password:
        print('登录成功!')
    else:
        print('登录失败!')

login()
